﻿using HelperFromTheSkeleton.WPFCommon;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelperFromTheSkeleton.WPFCore.Model
{
    public class WPFInitModel<T> where T: Config
    {
        /// <summary>
        /// 应用Code
        /// </summary>
        public string? ApplicationCode { get; set; }

        /// <summary>
        /// 应用名称
        /// </summary>
        public string? ApplicationName { get; set; }

        /// <summary>
        /// 注册服务
        /// </summary>
        public Action<IServiceCollection> ServiceOption { get; set; } = m => { };

        /// <summary>
        /// 配置信息
        /// </summary>
        public T? Config { get; set; }
    }
}
